home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / pascal / mystic.zip / PAS3.DOC < prev    next >
Text File  |  1986-02-27  |  7KB  |  230 lines

  1.  
  2.         Mystic Pascal  User Manual                                      18
  3.  
  4.  
  5.         5.  System Display
  6.  
  7.              The  System  Display screen contains  technical  information 
  8.         about  the  current  state of the  Mystic  Pascal  system.   This 
  9.         information is useful in storage allocation with the installation 
  10.         program and when working with multi-tasking programs.
  11.  
  12.              This  screen  displays  the current  time-of-day  (The  PC's 
  13.         onboard  clock  should  be correctly set.) and the  elapsed  time 
  14.         since  Pascal  was started.   A storage map and a  table  of  the 
  15.         currently  active  processes  are also  displayed.   The  Display 
  16.         Screen  is  updated approximately once every second  when  it  is 
  17.         being displayed. 
  18.  
  19.  
  20.  
  21.  
  22.         5.1  Storage Map
  23.  
  24.              The storage map shows the several main storage areas used by 
  25.         Mystic Pascal.   The starting address of each area is shown as an 
  26.         absolute  20 bit (5 hex digit) number.   This information can  be 
  27.         useful  when  using  the Install program to  modify  the  storage 
  28.         configuration. 
  29.  
  30.         User Area
  31.  
  32.              The  user  area is reserved for variables  declared  in  the 
  33.         user's  program.   Both  global variables and  procedures'  local 
  34.         variables  are  allocated  in  this  region.   Pointer  variables 
  35.         allocated  with the NEW procedure are placed in Dynamic  Storage, 
  36.         not here.
  37.  
  38.         Laser
  39.  
  40.              The  large  area code-named "Laser"  contains  the  internal 
  41.         symbolic  representation of the Pascal program.   Compiled object 
  42.         code  and dynamic variables allocated with the NEW procedure  are 
  43.         also  stored here.   The Laser may be up to a maximum of 640K  in 
  44.         size.   The percent of this area which is currently allocated  is 
  45.         displayed.
  46.  
  47.         Dynamic Storage
  48.  
  49.              Queue  messages and various system control blocks are stored 
  50.         in  this area.   Dynamic storage may be up to 60K in  size.   The 
  51.         percent of this area which is currently allocated is displayed.
  52.  
  53.  
  54.  
  55.  
  56.  
  57.         Section 5:   System Display
  58.  
  59.         Mystic Pascal  User Manual                                      19
  60.  
  61.  
  62.         Feature Buffer
  63.  
  64.              This buffer is used by the advanced feature support.
  65.  
  66.         Screen Buffers
  67.  
  68.              The  non-displayed  CRT  screens are stored in  this  buffer 
  69.         area.
  70.  
  71.         Optimizer Buffer
  72.  
  73.              The  optimizer  stores object code in this area  during  its 
  74.         processing.
  75.  
  76.         System Stack
  77.  
  78.              This  is the 8086 stack segment.   A separate stack area  is 
  79.         maintained for each concurrently executing process.
  80.  
  81.         System Data
  82.  
  83.              This is the main 8086 data segment.  
  84.  
  85.         System Code
  86.  
  87.              This  is  the 8086 code segment containing the  nucleus  and 
  88.         compiler assembly code.
  89.  
  90.         Program Segment Prefix
  91.  
  92.              This  100H byte area is setup by DOS when Mystic  Pascal  is 
  93.         started.   It  contains DOS system data areas and is not directly 
  94.         used by Mystic Pascal.
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.         Section 5:   System Display
  115.  
  116.         Mystic Pascal  User Manual                                      20
  117.  
  118.  
  119.         5.2  Process Control Table
  120.  
  121.              This  is a display of the process control blocks  (PCB)  for 
  122.         each   process  currently  allocated.    Seven  data  fields  are 
  123.         displayed.
  124.  
  125.              The  nucleus'  process manager maintains  a  "pseudo-timer".  
  126.         This  is  a  16 bit counter which  is  incremented  whenever  the 
  127.         dispatcher  transfers control to another process.   The value  of 
  128.         the  pseudo-timer is stored in a process control block when  that 
  129.         process  is  dispatched.   This  provides a very fast  method  of 
  130.         keeping  track of how recently each process has been  dispatched.  
  131.         When the pseudo-timer wraps around to 0, all PCB timer fields are 
  132.         also reset to 0.
  133.  
  134.              The  dispatcher can use this information to give  preference 
  135.         to  those processes that have been waiting a relatively long time 
  136.         for  a  chance to execute.   Each process is  assigned  a  static 
  137.         priority  which is also considered by the dispatcher in selecting 
  138.         a ready process.
  139.  
  140.         Process
  141.              Name of the process.
  142.  
  143.         St
  144.              Process current state
  145.                   P = Pascal process STARTed by user
  146.                   R = ready
  147.                   W = waiting for queue message
  148.  
  149.         Count
  150.              The number of times the process has been dispatched.
  151.  
  152.         SP
  153.              The process's stack pointer.
  154.  
  155.         Time
  156.              The pseudo-timer value when the process was last dispatched.
  157.  
  158.         Pr
  159.              The  static priority of the process.   This value determines 
  160.         what proportion of the processor time this process receives if it 
  161.         is ready to execute.
  162.  
  163.         Dyn
  164.              The  dynamic priority of the process.   This value  actually 
  165.         determines  which ready process will be  next  dispatched.   This 
  166.         value is equal to:  
  167.  
  168.                   static_priority + (current_pseudo_timer - time)
  169.  
  170.  
  171.         Section 5:   System Display
  172.  
  173.         Mystic Pascal  User Manual                                      21
  174.  
  175.  
  176.         6.  Help Windows
  177.  
  178.              The  Help  facility  is included in Mystic  Pascal  to  make 
  179.         learning easier for students and to provide a very fast reference 
  180.         source for experienced Pascal users.  The Help facility is always 
  181.         available from any screen.  Four function keys are used for help:
  182.  
  183.              F7   Pascal Language Help
  184.              F8   Standard Procedures & Functions Help
  185.              F9   Editor Help
  186.              F10  Function Key Help
  187.  
  188.  
  189.              F7  Pascal Language Help
  190.  
  191.              Function  key F7 will display a menu window showing the Help 
  192.         windows available.   Enter the letter or number key to select the 
  193.         topic you want to see.  
  194.  
  195.              Enter  any character to leave a topic window and  enter  any 
  196.         non menu character to leave the menu and return to the underlying 
  197.         screen.
  198.  
  199.              F8  Standard Procedures & Functions Help
  200.  
  201.              Function  key F8 displays a menu window showing all  builtin 
  202.         procedures  and functions.   Enter the letter or number to select 
  203.         the topic you want to see
  204.  
  205.              F9   Editor Help
  206.  
  207.              Function key F9 displays a list of editor commands directly.  
  208.         Hitting any key will remove the display.
  209.  
  210.              F10  Function Key Help
  211.  
  212.              Function  key  F10  displays  a list  of  all  function  key 
  213.         assignments.   This is only a reminder list.   The other function 
  214.         keys may not be invoked directly from this display window.
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.         Section 6:   Help Windows
  229.  
  230.